package cn.edu.scujcc;


	import java.util.List;

	import org.springframework.beans.factory.annotation.Autowired;

	import org.springframework.web.bind.annotation.GetMapping;
	import org.springframework.web.bind.annotation.PathVariable;
	import org.springframework.web.bind.annotation.PostMapping;

	import org.springframework.web.bind.annotation.RequestMapping;
	import org.springframework.web.bind.annotation.RestController;


	@RestController
	@RequestMapping("/ranking")
	public class RankingController {
		@Autowired
		private  RankingService service;

		@GetMapping("/hot")
		public List<Music> getMusic(){
			List<Music>result = null;
			result = service.getTopMusic();
			return result;
			}

}



